<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:h="http://java.sun.com/jsf/html">
<body>
	<ui:composition template="/template.xhtml">

		<ui:define name="right">

		</ui:define>

		<ui:define name="center">
			<h2>Cancella Esperimento</h2>


			<p:panel header="Lista degli Esperimenti">
				<h:form id="form">

					<p:dataTable id="experiments" var="localExperiment"
						value="#{experimentController.experimentList}"
						rowKey="#{localExperiment.id}" paginator="true" rows="10"
						rowStyleClass="lista" styleClass="lista"
						emptyMessage="nessun esperimento nel database">

						<p:column headerText="#{bundle.CreateExperimentTitle_series}"
							filterBy="#{localExperiment.seriesIid}"
							filterMatchMode="contains">
							<h:outputText value="#{localExperiment.seriesIid}" />
						</p:column>

						<p:column headerText="#{bundle.CreateExperimentLabel_title}">
							<h:outputText value="#{localExperiment.title}" />
						</p:column>

						<p:column headerText="#{bundle.CreateExperimentTitle_type}">
							<h:outputText value="#{localExperiment.type}" />
						</p:column>

						<p:column>
							 <p:column >  
                                <h:panelGrid columns="3" cellpadding="2">  
                                    <p:commandButton action="deleteConfirmExp" image="ui-icon ui-icon-close" ajax="false" title="Delete">  
                                        <f:setPropertyActionListener target="#{experimentController.experiment}" value="#{localExperiment}"  />  
                                    </p:commandButton> 
                                </h:panelGrid>  
                            </p:column>
						</p:column>

					</p:dataTable>
					

				</h:form>
			</p:panel>

		</ui:define>
	</ui:composition>

</body>
</html>
